package com.ruoyi.business.service;

import java.util.List;
import java.util.Map;

import com.ruoyi.business.domain.HurtDoctorAdvice;

/**
 * 医师医嘱Service接口
 *
 * @author ruoyi
 * @date 2024-04-24
 */
public interface IHurtDoctorAdviceService
{
    /**
     * 查询医师医嘱
     *
     * @param id 医师医嘱主键
     * @return 医师医嘱
     */
    public HurtDoctorAdvice selectHurtDoctorAdviceById(Long id);

    /**
     * 查询医师医嘱列表
     *
     * @param hurtDoctorAdvice 医师医嘱
     * @return 医师医嘱集合
     */
    public List<HurtDoctorAdvice> selectHurtDoctorAdviceList(HurtDoctorAdvice hurtDoctorAdvice);

    /**
     * 新增医师医嘱
     *
     * @param hurtDoctorAdvice 医师医嘱
     * @return 结果
     */
    public int insertHurtDoctorAdvice(HurtDoctorAdvice hurtDoctorAdvice);

    /**
     * 修改医师医嘱
     *
     * @param hurtDoctorAdvice 医师医嘱
     * @return 结果
     */
    public int updateHurtDoctorAdvice(HurtDoctorAdvice hurtDoctorAdvice);

    /**
     * 批量删除医师医嘱
     *
     * @param ids 需要删除的医师医嘱主键集合
     * @return 结果
     */
    public int deleteHurtDoctorAdviceByIds(Long[] ids);

    /**
     * 删除医师医嘱信息
     *
     * @param id 医师医嘱主键
     * @return 结果
     */
    public int deleteHurtDoctorAdviceById(Long id);

    /**
     * 医师获取患者的医嘱任务
     * @param doctorId
     * @param patientId
     * @return
     */
    List<Map<String,Object>>getAdviceByPatient(Long doctorId,Long patientId);

    /**
     * 患者获取自己的医嘱任务列表
     * @param patientId
     * @return
     */
    List<Map<String,Object>>getAdviceListByPatient(Long patientId);

    /**
     * 获取医嘱详情
     * @param id
     * @return
     */
    Map<String,Object>getAdviceDetailById(Long id);
}
